<template>
    <el-page-header :icon="null" style="color:#3C4045; ">
        <template #content>
            <span class="text-large font-600 mr-3 " style="color:#fff ;font-weight"></span>
        </template>
        <template #extra>
            <div class="flex items-center">
                <el-button type="info" :icon="Close" circle @click="handleCloseClick"/>
            </div>
        </template>
    </el-page-header>
</template>
<script setup>
import { Close } from '@element-plus/icons-vue'
import { ref ,onMounted} from 'vue'
const value = ref('')
const handleCloseClick = () => {
  console.log('window.electron:', window.electron); // 检查 window.electron 是否存在
  window.electron.ipcRenderer.send('close-window');
};


onMounted(() => {
  console.log("onMounted",window.electron); // 检查是否在全局对象上有 electron 对象
});
</script>
<style scoped>
   ::v-deep .el-divider--vertical{
       height: 0;
    }
</style>